package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysMiniAdmin;
import org.dromara.system.domain.SysMiniBanner;

/**
 * 小程序banner sys_mini_banner
 *
 * @author ling
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysMiniBanner.class, reverseConvertGenerate = false)
public class SysMiniBannerBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * banner分类 0.默认  1.外链
     */
    @NotNull(message = "类别不能为空", groups = { EditGroup.class })
    @Size(min = 0, max = 1, message = "类别错误0.默认  1.外链")
    private Integer bannerType;


    private String img;

    /**
     * 外链跳转链接
     */
    private String url;

    /**
     * 标题
     */
    private String title;


    /**
     * 作者
     */
    private String author;


    /**
     * 内容
     */
    private String context;


}
